<?php

namespace plugins\rwechat\controller;

use plugins\rwechat\lib\Wechat;
use cmf\controller\PluginBaseController;

class PublicController extends PluginBaseController
{
    public function serve()
    {
        $app = Wechat::app();
        if (isset($_GET['signature'])) {
            $app->server->serve()->send();
        }
    }

    public function test()
    {
        return 'test';
    }
}